#!/bin/bash
# git clone https://mirrors.ustc.edu.cn/git/ohmyzsh.git
rm -rf ~/.oh-my-zsh
export REMOTE=https://mirrors.tuna.tsinghua.edu.cn/git/ohmyzsh.git

bash -c "$(curl -fsSL https://mirrors.ustc.edu.cn/misc/ohmyzsh-install.sh | sed '/exec zsh/d')"

# ZSH=~/.oh-my-zsh
#
# git clone --depth 1 https://zhjch@codeup.aliyun.com/hevey/zsh-user.git $ZSH/custom/plugins/zsh-user
#git clone https://gitee.com/hevey88/zsh-completions.git                 $ZSH/custom/plugins/zsh-completions &

# bash ~/.oh-my-zsh/custom/plugins/zsh-user/install.sh
#sed -i ""  "/^_*plugins=/d" ~/.zshrc
#sed -i ""  "72a\\"$'\n'"plugins=(sublime z sudo extract colored-man-pages zsh-autosuggestions zsh-syntax-highlighting)" ~/.zshrc
# use this script remote
# bash -c "$(curl -fsSL https://gitee.com/hevey88/install_script/raw/main/macos/ohmyzsh_install.sh)"
